#!usr/bin/env python  
# -*- coding:utf-8 _*-
""" 
@author:robot
@file: v1api00_settings.py 
@version:
@time: 2022/05/10 
"""
from TapClientCore.T02_tm_api.v1_api.v1_api_base import *


class V1Settings(V1ApiBase):

    def __init__(self, change=''):
        super(V1Settings, self).__init__(change)

    def post_settings_object_id(self, _access_token):
        _url = self.settings_object_id + _access_token
        res = requests.post(_url).json()
        return res['data']

    @property
    def settings_object_id(self):
        return api_joint(
            self.server,
            'Settings',
            'ObjectId'
        )
